function doLogin() {
    var login = false;
    $.ajax({
        url: '/auth/login',
        data: "username=" + $("#username").val() + "&password=" + $("#password").val(),
        type: 'POST',
        contentType: 'application/x-www-form-urlencoded',
        async: true,
        success: function (d) {
            var status = d.status;
            if (status == "1") {
                login = false;
            } else {
                login = true;
            }
        }
    });

    return login;
}